<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/dianning.tld" prefix="dianning"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="/css/top.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
<link href="/css/index.css" rel="stylesheet" type="text/css" />
<link href="/css/vip.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/jquery.checkbox.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/popup.js"></script>
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" type="images/gif" href="animated_favicon1.gif" />
<script type="text/javascript">
function writeDateInfo()
{
        var day="";
        var month="";
        var ampm="";
        var ampmhour="";
        var myweekday="";
        var year="";
        mydate=new Date();
        myweekday=mydate.getDay();
        mymonth=mydate.getMonth()+1;
        myday= mydate.getDate();
        myyear= mydate.getYear();
        year=(myyear > 200) ? myyear : 1900 + myyear;
        if(myweekday == 0)
        weekday=" 星期日";
        else if(myweekday == 1)
        weekday=" 星期一";
        else if(myweekday == 2)
        weekday=" 星期二";
        else if(myweekday == 3)
        weekday=" 星期三";
        else if(myweekday == 4)
        weekday=" 星期四";
        else if(myweekday == 5)
        weekday=" 星期五";
        else if(myweekday == 6)
        weekday=" 星期六";
        document.write(year+"年"+mymonth+"月"+myday+"日"+weekday);
}
</script>
<script type="text/javascript">
		 var first = function(tabID, totalTab) {
		 	for(i = 0; i < totalTab; i ++) {
		 		if(i == tabID) {
		 			document.getElementById("tab_" + i).style.display = "block";
		 			document.getElementById("menu_" + i).className="movon";
		 		} else {
		 			document.getElementById("tab_" + i).style.display = "none";
		 			document.getElementById("menu_" + i).className="movof";
		 		}
				
		 	}
			
		 }
</script> 
<title>点宁网[<dianning:webinfo type="area"/>分类信息]<dianning:webinfo type="area"/>免费发布信息<dianning:webinfo type="poweredby"/></title>
<meta name="Description" content="<dianning:webinfo type="area"/>分类信息网为您提供<dianning:webinfo type="area"/>分类信息，您可以免费发布和查询求职招聘,兼职,房屋出租,二手市场,生活服务,兼职,黄页等分类信息."/>
<meta name="Keywords" content="<dianning:webinfo type="area"/>免费发布信息, <dianning:webinfo type="area"/>分类信息, <dianning:webinfo type="area"/>信息港, <dianning:webinfo type="area"/>热线, <dianning:webinfo type="area"/>免费发布广告，<dianning:webinfo type="area"/>114"/>
</head>
<body>
<div class="bgtop">
<s:include value="/top.jsp" />
</div>

<div class="content">
<s:include value="/WEB-INF/jsp/user/left.jsp" />
	<div class="vipr"><h2>账号资料</h2>
	<ul class="viprheight">
   <div class="caption"> 
     <span><table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td width="13%"  class="caption2">用户账号：</td>
         <td width="31%" class="caption1" ><s:property value="userInfo.username"/></td>
         <td width="10%" class="caption2">今天是</td>
         <td width="46%" class="caption2"><script type="text/javascript">writeDateInfo();</script>，欢迎登录</td>
       </tr>
       <tr>
         <td   class="caption2">信用等级：</td>
         <td class="caption3" ><s:property value="userInfo.credit"/></td>
         <td class="caption2">积分：</td>
         <td class="caption3"><s:property value="userInfo.money.points"/></td>
       </tr>
       <tr>
         <td  class="caption2">用户名：</td>
         <td class="caption1"><s:property value="userInfo.name"/></td>
         <td  class="caption2">手机：</td>
         <td><s:property value="userInfo.userDetail.mobile"/></td>
       </tr>
       <tr>
         <td  class="caption2">QQ：</td>
         <td class="caption1"><s:property value="userInfo.userDetail.qq"/></td>
         <td  class="caption2"></td>
         <td></td>
       </tr>
     </table>  
     </span>
	<img src="/avatar.action?uid=<s:property value="userInfo.id"/>" width="100" height="100" border="0" class="imgbox" />
   <h5> &nbsp;&nbsp;<a href="/user/userInfo.action">修改个人资料</a></h5>
    </div>
	 <div class="vipr1"> 
<div class="movR">
        <div class="mova">
		<li  onmouseover="javascript: first(0,4);" id="menu_0" class="movon">最新信息</li>
		<li  onmouseover="javascript: first(1,4);" id="menu_1" class="movof">显示中的信息</li>
		<li  onmouseover="javascript: first(2,4);" id="menu_2" class="movof">审核中的信息</li>
        <li  onmouseover="javascript: first(3,4);" id="menu_3" class="movof">已删除的信息</li>
		</div>
		<!--最新信息(start)-->
		<div class="movRs" id="tab_0">
		<TABLE class=basetb>
  <TBODY>
  <TR id=tablehead>
    <TH width="58%">标题</TH>
    <TH class=tit_cz width="20%">管理</TH>
    <TH class=tit_cz width="20%">推广</TH></TR>
<s:iterator id="ni" value="%{newInfos}" status="st" >
  <TR id="new_<s:property value="#ni.id"/>">
    <TD>
      <DIV>
	  <A href="<s:property value="#ni.smallChannel.displayurl"/>/<s:property value="#ni.id"/>.shtml" target="_blank"><s:property value="#ni.title"/></A><BR />
	  <P class="titletd tc58">更新时间:<s:date name="#ni.addTime" format="yyyy-MM-dd HH:mm"/><CITE>|</CITE>编号:<s:property value="#ni.id"/></P>
      </DIV>
    </TD>
	<TD class="cza czav">
		<A href="<s:property value="#ni.smallChannel.upurl"/>?action=update&id=<s:property value="#ni.id"/>" target=_blank>修改</A> 
		<s:if test="#ni.status==1">
		<A href="javascript:new_closeinfo(<s:property value="#ni.id"/>)">关闭</A> 
		<A href="javascript:new_delinfo(<s:property value="#ni.id"/>)">删除</A>
		</s:if>
		<s:if test="#ni.status==2">
		<A href="javascript:new_displayinfo(<s:property value="#ni.id"/>)">显示</A> 
		<A href="javascript:new_delinfo(<s:property value="#ni.id"/>)">删除</A>
		</s:if>
		<s:if test="#ni.status==3">
		<A href="javascript:new_closeinfo(<s:property value="#ni.id"/>)">关闭</A> 
		<A href="javascript:new_displayinfo(<s:property value="#ni.id"/>)">显示</A> 
		</s:if>
	</TD>
	<TD class="cza czav">
		<s:if test="#ni.validated==1">
		<s:if test="#ni.status==1">
		<A  onclick="new_infoTop(<s:property value="#ni.id"/>);return false" href="javascript:void(0);">置顶 </A>
		<A title="刷新后信息靠前显示，相当于新发一条。" onclick="new_refreshInfo(<s:property value="#ni.id"/>);return false" href="javascript:void(0);">刷新</A>
		</s:if>
		</s:if>
	</TD>
  </TR>
  <TR>
	<TD colspan="3">
	<iframe frameborder="0" scrolling="no" style="width: 100%; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; height: 0px; " src="" id="new_frm_<s:property value="#ni.id"/>"></iframe>
	</TD>
  </TR>
</s:iterator>
  </TBODY></TABLE>
		</div>
		<!--显示中的信息(start)-->
		<div class="movRs" id="tab_1" style="display:none">
		<TABLE class=basetb>
  <TBODY>
  <TR id=tablehead>
    <TH width="58%">标题</TH>
    <TH class=tit_cz width="20%">管理</TH>
    <TH class=tit_cz width="20%">推广</TH></TR>
<s:iterator id="si" value="%{showInfos}" status="st" >     
  <TR id="show_<s:property value="#si.id"/>">
    <TD>
      <DIV>
	  <A href="<s:property value="#si.smallChannel.displayurl"/>/<s:property value="#si.id"/>.shtml" target="_blank"><s:property value="#si.title"/></A><BR />
	  <P class="titletd tc58">更新时间:<s:date name="#si.addTime" format="yyyy-MM-dd HH:mm"/><CITE>|</CITE>编号:<s:property value="#si.id"/></P>
      </DIV>
    </TD>
	<TD class="cza czav">
		<A href="<s:property value="#si.smallChannel.upurl"/>?action=update&id=<s:property value="#si.id"/>" target=_blank>修改</A> 
		<A href="javascript:show_closeinfo(<s:property value="#si.id"/>)">关闭</A> 
		<A href="javascript:show_delinfo(<s:property value="#si.id"/>)">删除</A> 
	</TD>
	<TD class="cza czav">
		<A  onclick="show_infoTop(<s:property value="#si.id"/>);return false" href="javascript:void(0);">置顶 </A>
		<A title="刷新后信息靠前显示，相当于新发一条。" onclick="show_refreshInfo(<s:property value="#si.id"/>);return false" href="javascript:void(0);">刷新</A>
	</TD>
  </TR>
  <TR>
	<TD colspan="3">
	<iframe frameborder="0" scrolling="no" style="width: 100%; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; height: 0px; " src="" id="show_frm_<s:property value="#si.id"/>"></iframe>
	</TD>
  </TR>
</s:iterator>
  </TBODY></TABLE>
		</div>
		<!--审核中的信息(start)-->
		<div class="movRs" id="tab_2" style="display:none">
		<TABLE class=basetb>
  <TBODY>
  <TR id=tablehead>
    <TH width="78%">标题</TH>
    <TH class=tit_cz width="20%">管理</TH>
<s:iterator id="vi" value="%{validateInfos}" status="st" >     
  <TR id="validate_<s:property value="#vi.id"/>">
    <TD>
      <DIV>
	  <A href="<s:property value="#vi.smallChannel.displayurl"/>/<s:property value="#vi.id"/>.shtml" target="_blank"><s:property value="#vi.title"/></A><BR />
	  <P class="titletd tc58">更新时间:<s:date name="#vi.addTime" format="yyyy-MM-dd HH:mm"/><CITE>|</CITE>编号:<s:property value="#vi.id"/></P>
      </DIV>
    </TD>
	<TD class="cza czav">
		<A href="<s:property value="#vi.smallChannel.upurl"/>?action=update&id=<s:property value="#vi.id"/>" target=_blank>修改</A> 
	</TD>
  </TR>
  <TR>
	<TD colspan="2">
	</TD>
  </TR>
</s:iterator>
  </TBODY></TABLE>
		</div>
		<!--已删除的信息(start)-->
		<div class="movRs" id="tab_3" style="display:none">
		<TABLE class=basetb>
  <TBODY>
  <TR id=tablehead>
    <TH width="78%">标题</TH>
    <TH class=tit_cz width="20%">管理</TH>
<s:iterator id="di" value="%{delInfos}" status="st" >     
  <TR id="del_<s:property value="#di.id"/>">
    <TD>
      <DIV>
	  <A href="<s:property value="#di.smallChannel.displayurl"/>/<s:property value="#di.id"/>.shtml" target="_blank"><s:property value="#di.title"/></A><BR />
	  <P class="titletd tc58">更新时间:<s:date name="#di.addTime" format="yyyy-MM-dd HH:mm"/><CITE>|</CITE>编号:<s:property value="#di.id"/></P>
      </DIV>
    </TD>
	<TD class="cza czav">
		<A href="<s:property value="#di.smallChannel.upurl"/>?action=update&id=<s:property value="#di.id"/>" target=_blank>修改</A> 
		<A href="javascript:del_displayinfo(<s:property value="#di.id"/>)">显示</A> 
		<A href="javascript:del_closeinfo(<s:property value="#di.id"/>)">关闭</A> 
	</TD>
  </TR>
  <TR>
	<TD colspan="2">
	</TD>
  </TR>
</s:iterator>
  </TBODY></TABLE>
		</div>

</div>
     </div>
  </ul>
    <h3></h3>
    </div>
    </div>
<div class="content">
<s:include value="/foot.jsp" />
</div>
<script language="javascript">
function new_displayinfo(id)
{
  if (confirm('确认显示吗？')){
  $.get("info.action?action=dodisplay&id=" + id,null,function(data){window.location.reload();});
  }
}
function new_delinfo(id)
{
  if (confirm('确认删除吗？')){
  $.get("info.action?action=dodel&id=" + id,null,function(data){window.location.reload();});
  }
}
function new_closeinfo(id)
{
  if (confirm('确认关闭吗？')){
  $.get("info.action?action=doclose&id=" + id,null,function(data){window.location.reload();});
  }
}
function new_refreshInfo(id){ 
	$("iframe").css("height","0px");
	$("#new_frm_"+id).attr("src","info.action?action=refresh&id="+id+"&frm=new_frm&temp=1"+(new Date).getTime().toString(36));
	$("#new_frm_"+id).css("height","200px")
}

function new_infoTop(id){
	$("iframe").css("height","0px");
	$("#new_frm_"+id).attr("src","info.action?action=top&id="+id+"&frm=new_frm&temp=1"+(new Date).getTime().toString(36));
	$("#new_frm_"+id).css("height","200px")
}
//显示
function show_delinfo(id)
{
  if (confirm('确认删除吗？')){
  $.get("info.action?action=dodel&id=" + id,null,function(data){$('#show_' + id).css({display:'none'});});
  }
}
function show_closeinfo(id)
{
  if (confirm('确认关闭吗？')){
  $.get("info.action?action=doclose&id=" + id,null,function(data){$('#show_' + id).css({display:'none'});});
  }
}
function show_refreshInfo(id){ 
	$("iframe").css("height","0px");
	$("#show_frm_"+id).attr("src","info.action?action=refresh&id="+id+"&frm=show_frm&temp=1"+(new Date).getTime().toString(36));
	//$("#show_frm_"+id).css("height","200px")
}
function show_infoTop(id){
	$("iframe").css("height","0px");
	$("#show_frm_"+id).attr("src","info.action?action=top&id="+id+"&frm=show_frm&temp=1"+(new Date).getTime().toString(36));
	//$("#show_frm_"+id).css("height","200px")
}
//删除
function del_displayinfo(id)
{
  if (confirm('确认显示吗？')){
  $.get("info.action?action=dodisplay&id=" + id,null,function(data){$('#del_' + id).css({display:'none'});});
  }
}
function del_closeinfo(id)
{
  if (confirm('确认关闭吗？')){
  $.get("info.action?action=doclose&id=" + id,null,function(data){$('#del_' + id).css({display:'none'});});
  }
}
</script>
</body>
</html>
